<template>
	<!-- 我的库存 -->
	<view class="inventory-box">
		<view class="">
			12313465
		</view>
		<view class="inventory-fixed">
			<view class="inventory-btn">
				<up-button type="default" color="#009A4D" text="同意" @click="orderClick"></up-button>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		onMounted,
		onBeforeMount
	} from 'vue'
	import {
		getOrderStoreCreate
	} from '@/api/zfb.js'
	onMounted(() => {
		getUserInfo()
	})
	
	// const getUserInfo = async()=>{
	// 	const res = await getUserIndex()
	// 	console.log(JSON.parse(res.user_info));
	// }

	
	// 呼叫运力
	const orderClick = async()=>{
		const res = await getOrderStoreCreate()
		console.log(123465);
		if(res.code!=200){
			uni.showToast({
				title:res.message,
				icon:'none'
			})
			return
		}
		uni.showToast({
			title:res.message,
			icon:'none'
		})
	}
</script>

<style lang="scss">
	.inventory-box {
		position: relative;
		height: 80vh;

		.inventory-fixed {
			position: absolute;
			bottom: 0;
			width: 100%;

			.inventory-btn {
				background-color: #ffffff;
				padding: 30rpx;
			}
		}
	}
</style>